package com.openingedu.mba.persist;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "oc_question")
public class DbQuestion {

	public DbQuestion() {
		
	}

	@DatabaseField(generatedId = true)
	private Integer id;
	
	@DatabaseField
	private Integer questionID;
	
	@DatabaseField
	private String questionSerial;
	
	@DatabaseField
	private Integer questionType;
	
	@DatabaseField
	private Integer questionIndex;
	
	@DatabaseField
	private String questionTitle;
	
	@DatabaseField
	private String questionSummary;
	
	@DatabaseField
	private Short questionStatus;
	
	@DatabaseField
	private String questionTag;
	
	@DatabaseField
	private String questionImage;
	
	@DatabaseField
	private String questionImage1;
	
	@DatabaseField
	private String questionImage2;
	
	@ForeignCollectionField(eager = true)
	private ForeignCollection<DbQuestionOption> questionOptions;
	
	@ForeignCollectionField(eager = true)
	private ForeignCollection<DbQuestionSolution> questionSolutions;
	
	@ForeignCollectionField(eager = true)
	private ForeignCollection<DbQuestionSeckill> questionSeckills;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQuestionID() {
		return questionID;
	}

	public void setQuestionID(Integer questionID) {
		this.questionID = questionID;
	}

	public String getQuestionSerial() {
		return questionSerial;
	}

	public void setQuestionSerial(String questionSerial) {
		this.questionSerial = questionSerial;
	}

	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}

	public Integer getQuestionIndex() {
		return questionIndex;
	}

	public void setQuestionIndex(Integer questionIndex) {
		this.questionIndex = questionIndex;
	}

	public String getQuestionTitle() {
		return questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public String getQuestionSummary() {
		return questionSummary;
	}

	public void setQuestionSummary(String questionSummary) {
		this.questionSummary = questionSummary;
	}

	public Short getQuestionStatus() {
		return questionStatus;
	}

	public void setQuestionStatus(Short questionStatus) {
		this.questionStatus = questionStatus;
	}

	public String getQuestionTag() {
		return questionTag;
	}

	public void setQuestionTag(String questionTag) {
		this.questionTag = questionTag;
	}

	public String getQuestionImage() {
		return questionImage;
	}

	public void setQuestionImage(String questionImage) {
		this.questionImage = questionImage;
	}

	public String getQuestionImage1() {
		return questionImage1;
	}

	public void setQuestionImage1(String questionImage1) {
		this.questionImage1 = questionImage1;
	}

	public String getQuestionImage2() {
		return questionImage2;
	}

	public void setQuestionImage2(String questionImage2) {
		this.questionImage2 = questionImage2;
	}

	public ForeignCollection<DbQuestionOption> getQuestionOptions() {
		return questionOptions;
	}

	public void setQuestionOptions(
			ForeignCollection<DbQuestionOption> questionOptions) {
		this.questionOptions = questionOptions;
	}

	public ForeignCollection<DbQuestionSolution> getQuestionSolutions() {
		return questionSolutions;
	}

	public void setQuestionSolutions(
			ForeignCollection<DbQuestionSolution> questionSolutions) {
		this.questionSolutions = questionSolutions;
	}

	public ForeignCollection<DbQuestionSeckill> getQuestionSeckills() {
		return questionSeckills;
	}

	public void setQuestionSeckills(
			ForeignCollection<DbQuestionSeckill> questionSeckills) {
		this.questionSeckills = questionSeckills;
	}

	@Override
	public String toString() {
		return "DbQuestion [id=" + id + ", questionID=" + questionID
				+ ", questionSerial=" + questionSerial + ", questionType="
				+ questionType + ", questionIndex=" + questionIndex
				+ ", questionTitle=" + questionTitle + ", questionSummary="
				+ questionSummary + ", questionStatus=" + questionStatus
				+ ", questionTag=" + questionTag + ", questionImage="
				+ questionImage + ", questionImage1=" + questionImage1
				+ ", questionImage2=" + questionImage2 + ", questionOptions="
				+ questionOptions + ", questionSolutions=" + questionSolutions
				+ ", questionSeckills=" + questionSeckills + "]";
	}

}
